package com.zxw.设计模式.结构型.桥接模式.service;

import java.math.BigDecimal;

/**
 * @projectName: util-cloud
 * @package: com.zxw.设计模式.结构型.桥接模式.service
 * @className: Pay
 * @author: zhangxuewei
 * @description: 支付抽象类
 * @date: 2023/6/26 17:48
 * @version: 1.0
 */
public abstract class Pay {

    // 桥接对象
    protected IPayModel payModel;

    public Pay(IPayModel payModel) {
        this.payModel = payModel;
    }

    /**
     * @param uId:
     * @param tradeId:
     * @param amount:
     * @return String
     * @author zhangxuewei
     * @description 划账功能
     * @date 2023/6/26 17:51
     */
    public abstract String transfer(String uId, String tradeId, BigDecimal amount);

}
